//
//  Obj.h
//  NinjaTurtle
//
//  Created by Nguyen Tri Chung on 1/27/15.
//
//

#ifndef __NinjaTurtle__Obj__
#define __NinjaTurtle__Obj__

#include <stdio.h>
#include "cocos2d.h"
#include "../support/support.h"

USING_NS_CC;

class Obj : public Ref {
    CC_SYNTHESIZE(Body*, body, Body);
    CC_SYNTHESIZE_READONLY(Vector<CSprite*>*, sprites, Sprites);
public:
    Obj();
    virtual ~Obj();
    void update(float dt);
    void setPosition(Point position);
    Point getPosition();
    CSprite* getSprite(const string& spriteType);
    void removeSprite(const string& faceName);
    RectBody* getRectBody();
    
    void play(const string& spriteType, const string& action);
    void playLoop(const string& spriteType, const string& action);
};

#endif /* defined(__NinjaTurtle__Obj__) */
